package com.zhenwei.zscm.model.enums;

import lombok.Getter;

@Getter
public enum RepairStateEnum {
    CHECKING("待检测"),
    SALE_PRICE("待报价"),
    CONFIRMING("待确认"),
    REPAIRING("待维修"),
    REPAIRED("维修完成"),
    CANCEL_REPAIR("放弃维修");

    final String text;
    RepairStateEnum(String text) {
        this.text = text;
    }

    public static RepairStateEnum valOf(String text) {
        try {
            return RepairStateEnum.valueOf(text);
        } catch (Exception e) {
            return RepairStateEnum.REPAIRING;
        }
    }
}
